package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="SuiweiChgQusiDTO")
public class SuiweiChgQusiDTO {

    @NotNull(message = "月或周不能为空")
    @Pattern(regexp = "week|month", message = "月或周只能是week或者month")
    @ApiModelProperty(value = "月或周", example="week")
    private String monOrWeek;

    @NotNull(message = "月或周标识不能为空")
    @ApiModelProperty(value = "月或周标识", example="01")
    private String mwVal;

    @NotNull(message = "水位值不能为空")
    @Min(value = 0, message = "水位值必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "水位值必须是整数")
    @ApiModelProperty(value = "水位值", example="300")
    private String suiweiVal;
}